package com.atguigu;

import com.atguigu.aop.MathCalculator;
import com.atguigu.config.AnnotationConfig;
import com.atguigu.config.MainConfigOfAOP;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description :
 * @Version : V1.0.0
 * @Date : 2022/9/1 15:07
 */
public class AnnotationTest {
    public static void main(String[] args) {
        final AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfigOfAOP.class);

        MathCalculator bean = applicationContext.getBean(MathCalculator.class);
        bean.div(10, 1);
    }
}
